home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 1
/
CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso
/
Aminet
/
biz
/
demo
/
StylusDemo.lha
/
Stylus_Demo
/
REXX
/
ZoomNonProp.pvrx
< prev
next >
Wrap
Text File
|
1993-08-12
|
988b
|
52 lines
/* $VER: ZoomNonProp.pvrx 3.0 (10.Aug.93) */
/* Zooms into exact area lassoed.
Suggested "ProVector.pvrx" entry:
'Define "ZoomNonProp " ZoomNonProp'
Copyright © 1993 by Stylus, Inc.
*/
options results
/* Obtain exclusive access to ProVector(tm); quit if not possible */
'Lock Wait'
if rc ~= 0 then exit
Cmd = ""
/* Get the argument list to see whether this is a menu or an OK (callback) */
arg arglist
Cmd = word(arglist,1)
if Cmd = "" then do
/* This was called directly from the menu */
'Prompt "Click & drag to mark area"'
/* Get a rubber-banded area and call back */
'GetUserData 2 2 2 "ZoomNonProp OK" ""'
end
else if Cmd = "OK" then do
/* This was called from GetUserData */
'EndPrompt'
'GetInputPoints Pts'
View.X1 = Pts.0.X
View.Y1 = Pts.0.Y
View.X2 = Pts.1.X
View.Y2 = Pts.1.Y
'SetView View'
'Repair'
end
CleanUp:
'UnLock' /* Always be sure to unlock ProVector */
EXIT
Error:
arg String
'GetBool String "Cancel" "Cancel"'
'UnLock'
exit